.loader {
    width: 8px;
    height: 20px;
    border-radius: 4px;
    display: block;
    background-color: currentColor;
    margin: 20px auto;
    position: relative;
    color: #4096ff;
    animation: animloader 0.3s 0.3s linear infinite alternate;
  }
  
  .loader::after,
  .loader::before {
    content: '';
    width: 8px;
    height: 20px;
    border-radius: 4px;
    background: currentColor;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    animation: animloader 0.3s 0.45s linear infinite alternate;
  }
  
  .loader::before {
    left: -20px;
    animation-delay: 0s;
  }
  
  @keyframes animloader {
    0% {
      height: 28px;
    }
  
    100% {
      height: 4px;
    }
  }